package com.heima.crm.controller;

import com.heima.crm.common.result.PageResult;
import com.heima.crm.common.result.Result;
import com.heima.crm.pojos.dtos.NoticePageDTO;
import com.heima.crm.service.SysNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("notice")
@RestController
public class SysNoticeController {
    @Autowired
    private SysNoticeService sysNoticeService;

    //分页查询展示通知(未读,已读)
    @PostMapping("/list")
    public Result findList(@RequestBody NoticePageDTO dto){
        return sysNoticeService.findList(dto);
    }

    //查看发信人
    @GetMapping("/findUserInfo/{userId}")
    public Result findUserInfoById(@PathVariable Integer usreId){
        return null;
    }
}
